package model

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	OrderSn     string  `gorm:"type:varchar(100);not null;comment:订单号"`
	CourseId    int     `gorm:"type:int(10);not null;comment:课程id"`
	CourseName  string  `gorm:"type:varchar(100);not null;comment:课程名称"`
	CourseInfo  string  `gorm:"type:varchar(100);comment:课程简介"`
	CoursePrice float32 `gorm:"type:decimal(10,2);not null;comment:课程价格"`
	Num         int     `gorm:"type:int(10);not null;comment:购买数量"`
	Status      int     `gorm:"type:tinyint(10);not null;comment:状态"`
}
